﻿namespace AjLogo.Primitives
{
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    using AjLogo.Language;

    public class Word : IProcedure
    {
        public int Arity
        {
            get { return -1; }
        }

        public object Evaluate(BindingEnvironment environment, params object[] parameters)
        {
            StringBuilder sb = new StringBuilder();

            foreach (object parameter in parameters)
                if (parameter != null)
                    sb.Append(parameter.ToString());

            return sb.ToString();
        }
    }
}
